include ../variables
include ../mixins
doctype html
html(lang='zh-CN')
    head
        meta(charset='utf-8')
        if(projectType === 'mobile')
            meta(name='viewport', content='initial-scale=1, maximum-scale=1,minimum-scale=1, user-scalable=no, minimal-ui')
        else
            meta(http-equiv='X-UA-Compatible', content='IE=edge')
            meta(name='renderer', content='webkit')
            if (projectType === 'responsive')
                meta(name='viewport', content='width=device-width, initial-scale=1')

        title #{pageTitle}
        //- 头部
        block head

        //- 样式
        if(environment === 'build')
            link(rel='stylesheet', href='css/vendor.css')
        link(rel='stylesheet', href='css/tailwind.css')
        link(rel='stylesheet', href='js/plugins/swiper/swiper.css')
        link(rel='stylesheet', href='js/plugins/aos/aos.css')
        link(rel='stylesheet', href='css/base.css')
        link(rel='stylesheet', href='css/app.css')
        block style

        if(environment === 'build')
            script(src='js/base.js')
        script(src='js/plugins/jquery.min.js')
        script(src="js/plugins/adaptive.js")
        script(src="js/adaptive.config.js")
    body
        //- 内容区块
        block content

        //-底部区块
        block foot

        //- 脚本区块
        if(environment === "build")
            script(src="js/vendor.js", merge="true")

        if(projectType === "mobile")
            script(src="js/plugins/layer/mobile/layer.js")
        else
            script(src="js/plugins/layer/layer.js",merge="true")
            script(src="js/layer.config.js")

        script(src="js/plugins/popper.min.js")
        script(src="js/plugins/bootstrap/index.js")
        script(src="js/plugins/bootstrap/util.js")
        script(src="js/plugins/bootstrap/alert.js")
        script(src="js/plugins/bootstrap/button.js")
        script(src="js/plugins/bootstrap/carousel.js")
        script(src="js/plugins/bootstrap/collapse.js")
        script(src="js/plugins/bootstrap/dropdown.js")
        script(src="js/plugins/bootstrap/modal.js")
        script(src="js/plugins/bootstrap/tooltip.js")
        script(src="js/plugins/bootstrap/popover.js")
        script(src="js/plugins/bootstrap/scrollspy.js")
        script(src="js/plugins/bootstrap/tab.js")
        script(src="js/plugins/bootstrap/toast.js")

        script(src="js/plugins/swiper/swiper.js")
        script(src="js/plugins/aos/aos.js")
        // 因工具的bug，无法打包合并此插件，请打包后手动复制到vendor.js末尾
        script(src="js/plugins/lazyload.js")

        script(src="js/app.js")

        block script
